﻿using System;
using System.Collections.Generic;
using System.ComponentModel.Composition;
using System.ComponentModel.Composition.Hosting;
using System.Reflection;
using System.Linq;
using dbapi_lib.API.Plugin;



namespace Data_Acces_Lib
{
    class Program
    {
        static void Main(string[] args)
        {
            Program p = new Program();

            p.Run();
        }


        public void Run()
        {

            List<dynamic> list = new List<dynamic>();
            PluginHandler handler = new PluginHandler();

            list = handler.import();
            dynamic handball = list[0];


            handball.createtable();
            int teamId = handball.createTeam("Balatoni KC", new DateTime(1997, 10, 3), true);
            Console.WriteLine(handball.getTeam(teamId));

            Console.ReadKey();



        }

    }
}
